package com.lnsystem.model;

public class MovingAverage {

	private  int type; //0=SMA, 1=EMA
	private int period; //50, 200 (for sma), 8,10 (for ema) etc..
	private double runningSum;
	
	
	MovingAverage(){}

	
	public MovingAverage(int type, int period, double maValue) {
		super();
		this.type = type;
		this.period = period;
		this.maValue = maValue;

	}
	public MovingAverage(int type, int period, double maValue, double runningSum) {
		super();
		this.type = type;
		this.period = period;
		this.maValue = maValue;
		this.runningSum = runningSum;

	}

	double maValue;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getPeriod() {
		return period;
	}

	public void setPeriod(int period) {
		this.period = period;
	}

	public double getMaValue() {
		return maValue;
	}

	public void setMaValue(double maValue) {
		this.maValue = maValue;
	}


	public double getRunningSum() {
		return runningSum;
	}


	public void setRunningSum(double runningSum) {
		this.runningSum = runningSum;
	}
	
	
}
